package com.dj.dal;

import com.dj.domain.entity.JobsCorp;

/**
 * 类CorpDao.java的实现描述：TODO 类实现描述
 * 
 * @author jasen.hsu.cn@gmail.com 2012-5-2 下午2:09:58
 */
public class CorpDao extends BaseDao<JobsCorp> {

    public CorpDao(){
        this.namespace = "jobs.single.jobsCorp";
    }

    /**
     * 根据用户ID取得公司信息
     * 
     * @param uid
     * @return
     */
    public JobsCorp loadByUid(Long uid) {
        return (JobsCorp) sqlMapClientTemplate.queryForObject(namespace + "." + "loadByUid", uid);
    }

}
